package org.example.testdemo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("authorize")
public class Authorize {

    @TableId(value = "authorizeId",type = IdType.ASSIGN_UUID)
    private String authorizeId;//授权id
    @TableField("p_id")
    @NotNull(message = "参数异常")
    private String pId;//项目代码
    @TableField("b_Code")
    private String bCode;//部门代码
    @TableField("userId")
    @NotNull(message = "参数异常")
    private String userId;//用户id
    @TableField("creationTime")
    private LocalDateTime creationTime;//创建时间
}
